package yf.mall.vo.web;

import lombok.Data;
import yf.mall.entity.UserEntity;

@Data
public class BaseUserVO {

    private String name;

    private String code;

    private String mobile;

    private String level;

    private String avatar;

    private Integer zs;

    public BaseUserVO() {
    }

    public BaseUserVO(UserEntity user) {
        name = user.getName();
        code = user.getCode();
        mobile = user.getMobile();
        avatar = user.getAvatar();
        zs = user.getZsVip();
    }
}
